package BandB.Tool.GPhoneManager.TaskManager;

import android.content.ComponentName;
import android.graphics.drawable.Drawable;

/**
 * Represents a launchable application. An application is made of a name (or
 * title), an intent and an icon.
 */
public class ApplicationInfo {

	public static final int TASK_MANAGER_ID = 19860215;

	public int id;

	public boolean isCheck = false;

	/**
	 * The application name.
	 */
	CharSequence title;

	/**
	 * When set to true, indicates that the icon has been resized.
	 */
	boolean filtered;

	/**
	 * The application icon.
	 */
	Drawable icon;

	int pid;
	ComponentName topActivity;
	android.content.pm.ApplicationInfo appInfo;

	public android.content.pm.ApplicationInfo getAppInfo() {
		return appInfo;
	}

	public void setAppInfo(android.content.pm.ApplicationInfo appInfo) {
		this.appInfo = appInfo;
	}

	public ApplicationInfo() {
		filtered = false;
		title = null;
		icon = null;
		topActivity = null;
	}

	public CharSequence getTitle() {
		return title;
	}

	public void setTitle(CharSequence title) {
		this.title = title;
	}

	public boolean isFiltered() {
		return filtered;
	}

	public boolean isCheck() {
		return isCheck;
	}

	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
	}

	public void setFiltered(boolean filtered) {
		this.filtered = filtered;
	}

	public Drawable getIcon() {
		return icon;
	}

	public void setIcon(Drawable icon) {
		this.icon = icon;
	}

	@Override
	public String toString() {
		return title.toString();
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public ComponentName getTopActivity() {
		return topActivity;
	}

	public void setTopActivity(ComponentName topActivity) {
		this.topActivity = topActivity;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
